home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
contrib
/
supported
/
xypic
/
src
/
xyps-oz.doc
< prev
next >
Wrap
Text File
|
1995-03-15
|
5KB
|
158 lines
%% $Id: xyps-oz.doc,v 2.10 1994/06/15 12:46:03 ross Exp $
%%
%% XY-pic ``OzTeX driver'' PostScript backend support.
%% Copyright (c) 1993-1994 Ross Moore <ross@mpce.mq.edu.au>
%%
%% This file is part of the XY-pic package for graphs and diagrams in TeX.
%% See the companion README and INSTALL files for further information.
%% Copyright (c) 1991-1994 Kristoffer H. Rose <kris@diku.dk>
%%
%% The XY-pic package is free software; you can redistribute it and/or modify
%% it under the terms of the GNU General Public License as published by the
%% Free Software Foundation; either version 2 of the License, or (at your
%% option) any later version.
%%
%% The XY-pic package is distributed in the hope that it will be useful, but
%% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
%% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
%% for more details.
%%
%% You should have received a copy of the GNU General Public License along
%% with this package; if not, write to the Free Software Foundation, Inc.,
%% 675 Mass Ave, Cambridge, MA 02139, USA.
%%
\ifx\xypsozloaded\relax \message{not reloaded}\endinput \fi
\let\xypsozloaded=\relax \xycatcodes
\DOCMODE3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This included file (version \stripRCS$Revision: 2.10 $) provides \XY-ps
support for the DVI driver of \OzTeX\ by Andrew Trevorrow.\footnote{\OzTeX\
v1.7 is a shareware implementation of \TeX\ for Macintosh available from many
bulletin boards and ftp sites; v1.5 and earlier versions were freeware.
Email contact: <akt150@huxley.anu.edu.au>.}
\BUG: Colour support is not complete (see |INSTALL.OzTeX|
\NOTE: To use \XY-pic effectively with \OzTeX\ requires changing several
parameters. This is described in the file |INSTALL.|\-|OzTeX| of the \XY-pic
distribution.
\DOCMODE2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DOCHEADER
\OzTeX\ |\specials| require the contents of a file to be input.
An empty file called |empty.ps| is provided in the standard location, just
for this purpose. The actual commands are then included followed by this
file's (empty) contents.
\DOCMODE(
\xydef@\OzTeXSpecials@#1{\special{empty.ps mark{#1}xy}}
\xydef@\OzTeXDict@#1{\special{empty.ps prespecialVM restore grestore
{#1}stopped pop gsave /prespecialVM save def}}
\xydef@\OzTeXinclude@#1{\special{#1}}
\xydef@\OzTeXraw@#1{\special{empty.ps prespecialVM restore grestore
{#1}stopped pop gsave /prespecialVM save def}}%
\DOCMODE)
\DOCMODE(
\xydef@\OzTeX@@{\gdef\dvitype@{OzTeX }\dvimessage@
\global\let\PSspecial@=\OzTeXSpecials@
\global\let\PSmacro@=\OzTeXSpecials@
\global\let\PSdict@=\OzTeXDict@
\global\let\PSraw@=\OzTeXraw@
\global\let\PSinclude@=\OzTeXinclude@
\global\let\xyPSobeylines@=\obeyOzTeXlines@
\gdef\xyPSendline@@{\space}%
\gdef\firstPS@@{\firstPS@ \xyOzTeXheader}%
\gdef\endXYdict@{\firstPS@}%
% \xyPSshapes@true
\xyPSshapes@false
\firstPS@@ }%
\xydef@\xyOzTeXheader{\UsePSheader@{global.ps }%
\let\xyPSdictknown@=\relax \writePSdict@@
\includeXYPSdict@}
\xywarnifdefined\obeyOzTeXlines@
{\catcode`\^^M=\active
\gdef\obeyOzTeXlines@{\catcode`\^^M=\active \let^^M=\space }}
\DOCMODE)
Do it now.
\DOCMODE(
\OzTeX@@
\DOCMODE)
This is the default |\xyPScurrpt@@| so no need to redefine it.
%\DOCMODE(
%\def\xyPScurrpt@@{\PSspecial@{userdict begin
% 0 0 transform grestore gsave itransform % 2 copy moveto (X)show
% /xyYpos exch def /xyXpos exch def end}}
%\DOCMODE)
\DOCMODE2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph*{Rotations and Scaling}
\DOCMODE(
\xywithoption{line}{%
\xyinputorelse@{xyps-l.tex}{\xyerror@{Could not load xyps-l.tex}{}}}
\xycatcodes
\xywithoption{rotate}{%
\xyinputorelse@{xyps-r.tex}{\xyerror@{Could not load xyps-r.tex}{}}}
\xycatcodes
\DOCMODE)
\DOCMODE2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph*{Extra Colours}
Temporary: load all the colours anyway, while |xycolor| remains unwritten.
\DOCMODE(
\xywithoption{color}{%
\xyinputorelse@{xyps-col.tex}{\xyerror@{Could not load xyps-col.tex}{}}}
\xycatcodes
\xyinputorelse@{xyps-c.tex}{\xyerror@{Could not load xyps-c.tex}{}}
\xycatcodes
\xyinputorelse@{xyps-col.tex}{\xyerror@{Could not load xyps-col.tex}{}}
\xycatcodes
\DOCMODE)
\DOCMODE2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph*{The end \& Log}\leavevmode
\DOCMODE(
\xyendinput
% $Log: xyps-oz.doc,v $
% Revision 2.10 1994/06/15 12:46:03 ross
% Second release 3beta.
% Colour and line style saving works; label colouring bug fixed.
%
% Revision 2.10 1994/06/15 12:46:03 ross
% Second release 3beta.
% Colour and line style saving works; label colouring bug fixed.
%
% Revision 2.9 1994/06/09 14:38:56 ross
% Release 3beta.
% Includes support for special effects: Rotations, Scaling, Line-width, Colour.
% Back-ends are separated into separate files.
% More back-ends are supported, experimentally --- needs testing.
%
% NEW for version 2.9 by Ross Moore 1994/06/06.
\DOCMODE)
\DOCMODE3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tell Emacs that this is a LaTeX document and how it is formatted:
% Local Variables:
% mode:latex
% fill-column:77
% fill-prefix:""
% End: